<% include header.ejs %>
<p><a href="/geo.html">国家转化工具</a></p>
<form align = "center" style="margin-top:0px;" method="post"> 
输入模板offer_id:
<input type="text" name="top_offer_id">
<button type="submit">刷新</button>
</form>

<form method="post">
<table border="0" cellspacing="5">
<tr>
  <td>常用数据:</td>
</tr>
<tr>
  <td>offer_name</td>
  <td><input type="text" value = "<%= allData.offer_name %>" name= "offer_name" style="width:330px;"/></td>
  <td>app_name</td>
  <td><input type="text" value = "<%= allData.app_name %>" name= "app_name" style="width:330px;"/></td>
</tr>
<tr>
  <td>adv_camp_id</td>
  <td><input type="text" value = "<%= allData.adv_camp_id %>" name= "adv_camp_id" style="width:330px;"/></td>
  <td>preview_link</td>
  <td><input type="text" value = "<%= allData.preview_link %>" name= "preview_link" style="width:330px;"/></td>
</tr>
<tr>
  <td>geo_country</td>
  <td><textarea rows="1" cols="45" name= "geo_country"><%= allData.geo_country %></textarea></td>
  <td>appid</td>
  <td><input type="text" value = "<%= allData.appid %>" name= "appid" style="width:330px;"/></td>
</tr>
<tr>
  <td>payin</td>
  <td><input type="text" value = "<%= allData.payin %>" name= "payin" style="width:330px;"/></td>
  <td>devices</td>
  <td><input type="text" value = "<%= allData.devices %>" name= "devices" style="width:330px;"/></td>
</tr>
<tr>
  <td>redirect_format</td>
  <td><input type="text" value = "<%= allData.redirect_format %>" name= "redirect_format" style="width:330px;"/></td>
  <td>platform</td>
  <td>
  <select name= "platform" id = "platform" >
    <option value="Android">Android</option>  
    <option value="IOS">IOS</option>  
    <option value="Android/IOS">Android/IOS</option>  
  </select> 
  </td>
</tr>
<tr>
  <td>cap_all_today</td>
  <td><input type="text" value = "<%= allData.cap_all_today %>" name= "cap_all_today" style="width:330px;"/></td>
  <td>pay_type</td>
  <td><input type="text" value = "<%= allData.pay_type %>" name= "pay_type" style="width:330px;"/></td>
</tr>
<tr>
  <td>traffic_reqirement</td>
  <td><textarea rows="3" cols="45" name= "traffic_reqirement"><%= allData.traffic_reqirement %></textarea></td>
  <td>kpi</td>
  <td><textarea rows="3" cols="45" name= "kpi"><%= allData.kpi %></textarea></td>
</tr>
<tr>
  <td>ret_day_need</td>
  <td><input type="text" value = "<%= allData.ret_day_need %>" name= "ret_day_need" style="width:330px;"/></td>
  <td>ret_percent_need</td>
  <td><input type="text" value = "<%= allData.ret_percent_need %>" name= "ret_percent_need" style="width:330px;"/></td>
</tr>
<tr>
  <td>aff_id</td>
  <td><input type="text" value = "<%= allData.aff_id %>" name= "aff_id" style="width:330px;"/></td>
</tr>
<tr>
  <td>advertiser_id</td>
  <td><input type="text" value = "<%= allData.advertiser_id %>"  name= "advertiser_id" style="width:330px;"/></td>
  <td><input type="submit" value="提交sql"/></td>
</tr>
<tr>
  <td>可以不录入的数据:</td>
</tr>
<tr>
  <td>payout</td>
  <td><input type="text" value = "<%= allData.payout %>" name= "payout" style="width:330px;"/></td>
  <td>state</td>
  <td><input type="text" value = "<%= allData.state %>" name= "state" style="width:330px;"/></td>
</tr>
<tr>
  <td>start_date</td>
  <td><input type="text" value = "<%= allData.start_date %>" name= "start_date" style="width:330px;"/></td>
  <td>end_date</td>
  <td><input type="text" value = "<%= allData.end_date %>" name= "end_date" style="width:330px;"/></td>
</tr>
<tr>
  <td>effective_date</td>
  <td><input type="text" value = "<%= allData.effective_date %>" name= "effective_date" style="width:330px;"/></td>
  <td>update_date</td>
  <td><input type="text" value = "<%= allData.update_date %>" name= "update_date" style="width:330px;"/></td>
</tr>
<tr>
  <td>cap_all</td>
  <td><input type="text" value = "<%= allData.cap_all %>" name= "cap_all" style="width:330px;"/></td>
  <td>geo_city</td>
  <td><input type="text" value = "<%= allData.geo_city %>" name= "geo_city" style="width:330px;"/></td>
</tr>
<tr>
  <td>geo_country_except</td>
  <td><input type="text" value = "<%= allData.geo_country_except %>" name= "geo_country_except" style="width:330px;"/></td>
  <td>geo_city_except</td>
  <td><input type="text" value = "<%= allData.geo_city_except %>" name= "geo_city_except" style="width:330px;"/></td>
</tr>
<tr>
  <td>traffic_type</td>
  <td><input type="text" value = "<%= allData.traffic_type %>" name= "traffic_type" style="width:330px;"/></td>
  <td>osversion</td>
  <td><input type="text" value = "<%= allData.osversion %>" name= "osversion" style="width:330px;"/></td>
</tr>
<tr>
  <td>payment_terms</td>
  <td><input type="text" value = "<%= allData.payment_terms %>" name= "payment_terms" style="width:330px;"/></td>
  <td>pack_res_link</td>
  <td><input type="text" value = "<%= allData.pack_res_link %>" name= "pack_res_link" style="width:330px;"/></td>
</tr>
<tr>
  <td>slogan_description</td>
  <td><input type="text" value = "<%= allData.slogan_description %>" name= "slogan_description" style="width:330px;"/></td>
  <td>group_id</td>
  <td><input type="text" value = "<%= allData.group_id %>" name= "group_id" style="width:330px;"/></td>
</tr>

<tr>
  <td>cap_exceed_count</td>
  <td><input type="text" value = "<%= allData.cap_exceed_count %>" name= "cap_exceed_count" style="width:330px;"/></td>
  <td>cap_exceed_percent</td>
  <td><input type="text" value = "<%= allData.cap_exceed_percent %>" name= "cap_exceed_percent" style="width:330px;"/></td>
</tr>
<tr>
  <td>force_stop_level</td>
  <td><input type="text" value = "<%= allData.force_stop_level %>" name= "force_stop_level" style="width:330px;"/></td>
  <td>force_stop</td>
  <td><input type="text" value = "<%= allData.force_stop %>" name= "force_stop" style="width:330px;"/></td>
</tr>
<tr>
  <td>status</td>
  <td><input type="text" value = "<%= allData.status %>" name= "status" style="width:330px;"/></td>
  <td>exclude_device</td>
  <td><input type="text" value = "<%= allData.exclude_device %>" name= "exclude_device" style="width:330px;"/></td>
</tr>
<tr>
  <td>exclude_site</td>
  <td><input type="text" value = "<%= allData.exclude_site %>" name= "exclude_site" style="width:330px;"/></td>
  <td>carriers</td>
  <td><input type="text" value = "<%= allData.carriers %>" name= "carriers" style="width:330px;"/></td>
</tr>
<tr>
  <td>icon_link</td>
  <td><input type="text" value = "<%= allData.icon_link %>" name= "icon_link" style="width:330px;"/></td>
  <td>max_android_version</td>
  <td><input type="text" value = "<%= allData.max_android_version %>" name= "max_android_version" style="width:330px;"/></td>
</tr>
<tr>
  <td>tips</td>
  <td><input type="text" value = "<%= allData.tips %>" name= "tips" style="width:330px;"/></td>
  <td>app_desc</td>
  <td><input type="text" value = "<%= allData.app_desc %>" name= "app_desc" style="width:330px;"/></td>
</tr>
<tr>
  <td>app_size</td>
  <td><input type="text" value = "<%= allData.app_size %>" name= "app_size" style="width:330px;"/></td>
  <td>app_rate</td>
  <td><input type="text" value = "<%= allData.app_rate %>" name= "app_rate" style="width:330px;"/></td>
</tr>
<tr>
  <td>quality0</td>
  <td><input type="text" value = "<%= allData.quality0 %>" name= "quality0" style="width:330px;"/></td>
  <td>quality1</td>
  <td><input type="text" value = "<%= allData.quality1 %>" name= "quality1" style="width:330px;"/></td>
</tr>
<tr>
  <td>quality2</td>
  <td><input type="text" value = "<%= allData.quality2 %>" name= "quality2" style="width:330px;"/></td>
  <td>quality3</td>
  <td><input type="text" value = "<%= allData.quality3 %>" name= "quality3" style="width:330px;"/></td>
</tr>
<tr>
  <td>quality4</td>
  <td><input type="text" value = "<%= allData.quality4 %>" name= "quality4" style="width:330px;"/></td>
  <td>quality5</td>
  <td><input type="text" value = "<%= allData.quality5 %>" name= "quality5" style="width:330px;"/></td>
</tr>
<tr>
  <td>remark0</td>
  <td><input type="text" value = "<%= allData.remark0 %>" name= "remark0" style="width:330px;"/></td>
  <td>remark1</td>
  <td><input type="text" value = "<%= allData.remark1 %>" name= "remark1" style="width:330px;"/></td>
</tr>
<tr>
  <td>app_category</td>
  <td><input type="text" value = "<%= allData.app_category %>" name= "app_category" style="width:330px;"/></td>
  <td>operator</td>
  <td><input type="text" value = "<%= allData.operator %>" name= "operator" style="width:330px;"/></td>
</tr>

</table>
</form>

<script type = "text/javascript" >
    var index
    if("<%= allData.platform %>" == 'Android')
      index = 0
    else if("<%= allData.platform %>" == 'IOS')
      index = 1
    else if("<%= allData.platform %>" == 'Android/IOS')
      index = 2

    document.getElementById("platform")[index].selected=true;
</script >

<% include footer.ejs %>